// Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/theming/

/** Ionic CSS Variables **/
@import "../customGlobal.scss";

:root {
  /** primary **/
  --ion-color-primary: #3880ff;
  --ion-color-primary-rgb: 56, 128, 255;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255, 255, 255;
  --ion-color-primary-shade: #3171e0;
  --ion-color-primary-tint: #4c8dff;

  /** secondary **/
  --ion-color-secondary: #0cd1e8;
  --ion-color-secondary-rgb: 12, 209, 232;
  --ion-color-secondary-contrast: #ffffff;
  --ion-color-secondary-contrast-rgb: 255, 255, 255;
  --ion-color-secondary-shade: #0bb8cc;
  --ion-color-secondary-tint: #24d6ea;

  /** tertiary **/
  --ion-color-tertiary: #7044ff;
  --ion-color-tertiary-rgb: 112, 68, 255;
  --ion-color-tertiary-contrast: #ffffff;
  --ion-color-tertiary-contrast-rgb: 255, 255, 255;
  --ion-color-tertiary-shade: #633ce0;
  --ion-color-tertiary-tint: #7e57ff;

  /** success **/
  --ion-color-success: #10dc60;
  --ion-color-success-rgb: 16, 220, 96;
  --ion-color-success-contrast: #ffffff;
  --ion-color-success-contrast-rgb: 255, 255, 255;
  --ion-color-success-shade: #0ec254;
  --ion-color-success-tint: #28e070;

  /** warning **/
  --ion-color-warning: #ffce00;
  --ion-color-warning-rgb: 255, 206, 0;
  --ion-color-warning-contrast: #ffffff;
  --ion-color-warning-contrast-rgb: 255, 255, 255;
  --ion-color-warning-shade: #e0b500;
  --ion-color-warning-tint: #ffd31a;

  /** danger **/
  --ion-color-danger: #f04141;
  --ion-color-danger-rgb: 245, 61, 61;
  --ion-color-danger-contrast: #ffffff;
  --ion-color-danger-contrast-rgb: 255, 255, 255;
  --ion-color-danger-shade: #d33939;
  --ion-color-danger-tint: #f25454;

  /** dark **/
  --ion-color-dark: #222428;
  --ion-color-dark-rgb: 34, 34, 34;
  --ion-color-dark-contrast: #ffffff;
  --ion-color-dark-contrast-rgb: 255, 255, 255;
  --ion-color-dark-shade: #1e2023;
  --ion-color-dark-tint: #383a3e;

  /** medium **/
  --ion-color-medium: #989aa2;
  --ion-color-medium-rgb: 152, 154, 162;
  --ion-color-medium-contrast: #ffffff;
  --ion-color-medium-contrast-rgb: 255, 255, 255;
  --ion-color-medium-shade: #86888f;
  --ion-color-medium-tint: #a2a4ab;

  /** light **/
  --ion-color-light: #f4f5f8;
  --ion-color-light-rgb: 244, 244, 244;
  --ion-color-light-contrast: #000000;
  --ion-color-light-contrast-rgb: 0, 0, 0;
  --ion-color-light-shade: #d7d8da;
  --ion-color-light-tint: #f5f6f9;

  /** custom color gold **/
  --ion-color-gold: linear-gradient(to right, #ff9500, #ff6314);
  --ion-color-gold-rgb: 255, 99, 20;
  --ion-color-gold-contrast: #ffffff;
  --ion-color-gold-contrast-rgb: 0, 0, 0;
  --ion-color-gold-shade: #e05712;
  --ion-color-gold-tint: #ff732c;

  /** custom color  **/
  --ion-color-laijian: linear-gradient(90deg, #ffe14a 0%, #ffca3a 100%);
  --ion-color-laijian-rgb: 255, 99, 20;
  --ion-color-laijian-contrast: #ffffff;
  --ion-color-laijian-contrast-rgb: 0, 0, 0;
  --ion-color-laijian-shade: #ffca3a;
  --ion-color-laijian-tint: #ffe14a;

  /** 字体 **/
  // --ion-font-family: PingFangSC-Regular, "Droid Sans Fallback", "san francisco";
}

.ion-color-gold {
  --ion-color-base: var(--ion-color-gold) !important;
  --ion-color-base-rgb: var(--ion-color-gold-rgb) !important;
  --ion-color-contrast: var(--ion-color-gold-contrast) !important;
  --ion-color-contrast-rgb: var(--ion-color-gold-contrast-rgb) !important;
  --ion-color-shade: var(--ion-color-gold-shade) !important;
  --ion-color-tint: var(--ion-color-gold-tint) !important;
}

.ion-color-laijian {
  --ion-color-base: var(--ion-color-laijian) !important;
  --ion-color-base-rgb: var(--ion-color-laijian-rgb) !important;
  --ion-color-contrast: var(--ion-color-laijian-contrast) !important;
  --ion-color-contrast-rgb: var(--ion-color-laijian-contrast-rgb) !important;
  --ion-color-shade: var(--ion-color-laijian-shade) !important;
  --ion-color-tint: var(--ion-color-laijian-tint) !important;
}

.searchbar-input.sc-ion-searchbar-ios {
  border-radius: 0.31rem;
  font-size: 0.81rem;

  @if $appType =="LJ" {
    border-radius: 1.09rem;
    color: $LJLabelColor;
  }
}

.searchbar-cancel-button.sc-ion-searchbar-ios {
  @if $appType =="LJ" {
    color: $LJLabelColor;
  }
}

.am-list-item .am-list-line .am-list-content {
  -webkit-flex: none;
  flex: none;
  width: 33%;
  color: #27282e !important;

  @if $appType =="LJ" {
    color: $LJLabelColor;
  }
}

@media screen and (max-width: 375px) {
  .am-list-item .am-list-line .am-list-content {
    width: 33%;
  }
}

.am-list-item .am-list-line .am-list-extra {
  flex-basis: 69%;
  text-align: left;
}

.ng-dirty .am-list-line .am-list-extra,
.ng-dirty .am-list-line .am-list-brief {
  color: #27282e;

  @if $appType =="LJ" {
    color: $LJLabelColor;
  }
}

.alert-input-group.sc-ion-alert-ios,
.alert-message.sc-ion-alert-ios {
  font-size: 16px;
  font-weight: bold;
}

//  sure
.alert-button-inner.sc-ion-alert-ios:nth-child(1) {
  color: #27282e;

  @if $appType =="LJ" {
    color: $LJAlertConfirmColor;
    font-weight: bold;
  }

  font-size: 1rem;
}

//  cancel
.secondary .alert-button-inner.sc-ion-alert-ios:nth-child(1) {
  color: #27282e;

  @if $appType =="LJ" {
    color: $LJLabelColor;
  }
}

.alert-button-inner.sc-ion-alert-ios:nth-child(2) {
  color: #ff6314;
  font-size: 1rem;
}

.select-alert {
  .alert-button:nth-child(1) {
    display: none;
  }

  .alert-button:nth-child(2) {
    /* background: linear-gradient(to right, #FF9500, #FF6314); */
    font-size: 1rem;
    font-weight: bold;
    height: 4rem;

    .alert-button-inner {
      background: linear-gradient(to right, #ff9500, #ff6314);
      color: #ffffff !important;
      width: 86.6%;
      height: 2.75rem;
      border-radius: 0.31rem;
      margin: auto;
    }
  }

  .alert-head.sc-ion-alert-ios {
    display: none;
  }

  .alert-message.sc-ion-alert-ios:empty {
    display: none;
  }

  .alert-checkbox-group.sc-ion-alert-ios,
  .alert-radio-group.sc-ion-alert-ios {
    border-top: none;
  }

  // modify by jason he  test  auto height
  // .alert-wrapper.sc-ion-alert-ios{
  //   height:53vh
  // }
  // .alert-checkbox-group.sc-ion-alert-ios, .alert-radio-group.sc-ion-alert-ios {
  //   height: calc(53vh - 4rem);
  // }
}

// .alert-checkbox-group.sc-ion-alert-ios, .alert-radio-group.sc-ion-alert-ios {
//   max-height: 53vh
// }
[aria-checked="true"].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios {
  border-color: #ff6314;
  background-color: #ff6314;
}

[aria-checked="true"].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios {
  color: #ff6314;
}

[aria-checked="true"].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios {
  border-color: #ff6314;
}

.am-picker-popup-header {
  height: 3.38rem;
}

.am-picker-popup-header-left {
  color: #858894;

  @if $appType =="LJ" {
    color: $LJLabelGrayColor;
  }
}

.am-picker-popup-header-right {
  color: #ff6314;

  @if $appType =="LJ" {
    color: $LJAlertConfirmColor;
    font-weight: bold;
  }
}

.picker-toolbar-cancel .picker-button {
  color: #858894;
}

.picker-toolbar-sure .picker-button {
  color: #ff6314;

  @if $appType =="LJ" {
    color: $LJAlertConfirmColor;
    font-weight: bold;
  }
}

.am-picker-col-indicator {
  font-size: 24px;
  height: 34px;
  line-height: 34px;
  color: #27282e;
  font-weight: bold;

  @if $appType =="LJ" {
    color: $LJLabelColor;
  }
}

.picker-opt,
.picker-opts,
.picker-prefix,
.picker-suffix {
  font-size: 16px !important;
  color: #27282e;

  @if $appType =="LJ" {
    color: $LJAlertConfirmColor;
    font-weight: bold;
  }
}

.picker-col .picker-opt {
  font-size: 16px !important;
  color: #27282e !important;
}

.picker-toolbar-button.sc-ion-picker-ios .picker-button.ion-activatable.sc-ion-picker-ios {
  color: #27282e;

  @if $appType =="LJ" {
    color: $LJAlertConfirmColor;
    font-weight: bold;
  }
}

.select-icon-inner {
  display: none !important;
}

.select-icon {
  background: url("../assets/icon/release_icon_arrow_right@2x.png");
  // .select-icon-inner {
  //   display: none !important;
  //   border-top: 0;
  //   border-right: 0;
  //   border-left: 0;
  // }
}

.alert-wrapper.sc-ion-alert-ios {
  --min-width: 72%;
  --background: #ffffff;
}

.am-list-item .am-list-line .am-list-arrow {
  width: 7px;
  background-image: url("../assets/icon/release_icon_arrow_right@2x.png");
}

.alert-tappable.sc-ion-alert-ios {
  font-size: 1rem;
}

.alert-tappable.sc-ion-alert-ios:nth-child(1) {
  margin-top: 0.88rem;
}

ion-toast {
  --width: auto;
  text-align: center;
  --border-radius: 1.53rem;
  color: white;
  --background: rgba(39, 40, 46, 0.8);
  --max-width: calc(100% - 60px);
  --width: fit-content;
  --width: -webkit-fit-content;
  text-align: center;
  --margin: 0 auto;
}

.item-detail-icon {
  color: #b6b7bf !important;
}

.am-list-body {
  border-bottom: unset !important;
  border-top: unset !important;

  @if $appType =="LJ" {
    border-radius: 0.31rem;
  }

  background: transparent; // 适配入驻背景色
}

html:not([data-scale]) .am-list-body::after {
  height: 0;
}

html:not([data-scale]) .am-list-body::before {
  height: 0;
}

// add by andrew.wen for custom-ok-btn
.custom-ok-btn {
  span {
    height: 1rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: rgba(255, 99, 20, 1) !important;
  }
}

ion-toggle {
  // height: 1.75rem;
  width: 3.13rem;

  --background-checked: #ffcc00;
  --handle-width: 1.5rem;
  --handle-height: 1.5rem;
  // --handle-background-checked: #0A3CA0;
  // --handle-background: rgb(204, 204, 204);
}

.am-accordion {
  border-top: unset;
}

.am-accordion .am-accordion-item .am-accordion-header {
  border-bottom: unset;
  background: #f5f5f5;
  padding-left: unset;
}

.am-accordion .am-accordion-item .am-accordion-content .am-accordion-content-box {
  border-bottom: unset;
  background: #ffffff;
  border-radius: 0.25rem;
  border: 0.03rem solid #ededed;
}

.am-picker-popup.am-slide-up-enter.am-slide-up-enter-active {
  border-radius: 0.75rem 0.75rem 0rem 0rem;
}

.am-picker {
  margin-top: -0.04rem;
}

// 蜂喔商户2.1.0
ion-toast .toast-button {
  padding-inline-end: 0rem !important;
}


// 2023.12.02 
.myTalkContent {
  position: relative;
  display: inline-block;
  vertical-align: top;
  background: #ffe700;
  color: #393a40;
  border-radius: 0.5rem 0 0.5rem 0.5rem;
}

.myTalkContentOPP {
  position: relative;
  display: inline-block;
  vertical-align: top;
  background: #ffffff;
  color: #393a40;
  border-radius: 0.5rem 0 0.5rem 0.5rem;
}

.myTalkContentOPP::after {
  position: absolute;
  display: inline-block;
  top: 0;
  right: -0.5rem;
  width: 0;
  height: 0;
  content: '';
  border-style: solid;
  border-width: 0.25rem;
  border-color: #ffffff #ffffff transparent transparent;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}


.myTalkContent::after {
  position: absolute;
  display: inline-block;
  top: 0;
  right: -0.5rem;
  width: 0;
  height: 0;
  content: '';
  border-style: solid;
  border-width: 0.25rem;
  border-color: #ffe700 #ffe700 transparent transparent;
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.friendContent::before {
  position: absolute;
  display: inline-block;
  top: 0rem;
  right: 0rem;
  left: -0.375rem;
  width: 0;
  height: 0;
  content: '';
  border-style: solid;
  border-width: 0.375rem;
  border-color: #fff #fff transparent transparent;
  -webkit-transform: rotate(115deg);
  transform: rotate(115deg);
}

.friendContentOPP::before {
  position: absolute;
  display: inline-block;
  top: 0rem;
  right: 0rem;
  left: -0.375rem;
  width: 0;
  height: 0;
  content: '';
  border-style: solid;
  border-width: 0.375rem;
  border-color: #fff #fff transparent transparent;
  -webkit-transform: rotate(115deg);
  transform: rotate(115deg);
}

.am-accordion .customAccorditon .am-accordion-header {
  background: #ffffff;
  margin-top: -1.8rem;
  height: 2.5rem;
}
.am-accordion .customAccorditon .am-accordion-header .arrow {
   top:0.5rem;
}

html:not([data-scale]) .am-accordion .customAccorditon .am-accordion-header::after {
  background-color: #ffffff;
}

html:not([data-scale]) .am-accordion .customAccorditon .am-accordion-content .am-accordion-content-box::after {
  background-color: #ffffff;
}

.am-accordion .customAccorditon .am-accordion-content .am-accordion-content-box {
  border: unset;
}

// 下拉刷新字体样式
.refresher-ios .refresher-pulling-icon, .refresher-ios .refresher-pulling-text, .refresher-ios .refresher-refreshing-icon, .refresher-ios .refresher-refreshing-text{
  color: #858894;
  font-size: 0.84rem;
}